
package com.sprucetec.live.constants;
/**
 * @ClassName RedisKeyConstant
 * @Description:
 * @Author Kenny
 * @Date 2020/4/1
 **/
public class RedisKeyConstant {



    /**
     * 数据统计redis key
     */
    public static class LiveVideoDataStatistics {
        public static final String topNum = "LIVE:TOPNUM:NUM:"; // 峰值人数
        public static final String watchNum = "LIVE:WATCHNUM:NUM:";// 观看次数

        public static final String chatPersonNum = "LIVE:CHATPERSONNUM:NUM:"; // 聊天人数
        public static final String chatNum = "LIVE:CHATNUM:NUM:"; // 聊天次数
        public static final String questionPersonNum = "LIVE:QUESTIONPERSONNUM:NUM:"; // 提问人数
        public static final String questionNum = "LIVE:QUESTIONNUM:NUM:";// 提问次数
        public static final String onlineUser = "LIVE:ONLINEUSER:USER:"; //观看人， 如果用户离开了也会记录不会删除
    }
    /**
     * 禁言用户缓存
     */
    public static  class LiveUserMuted{
        public static final String liveMuted = "LIVE:MUTED"; // 全局禁言
        //public static final String liveMuetedVideo = "LIVE:MUTED:VIDEO:"; // 根据文章禁言
    }

    /**
     * 视频分类相关数据
     */
    public static class LiveKind{
        // 置顶
        public static final String TOPVIDEO = "LIVE:TOP:VIDEO";

        // 轮播
        public static final String CAROUSEL = "LIVE:CAROUSEL:VIDEO";

        // 最新
        public static final String NEWLAST = "LIVE:NEWLAST:VIDEO";

        // 相关
        public static final String RELATED = "LIVE:RELATED:VIDEO";
    }


    /**
     * 视频聊天
     */
    public static class LiveChat{
        // 聊天
        public final static String LIVE_CHAT_CACHE = "LIVE:LIVE_CHAT_CACHE";
    }


    /**
     * 单独的视频
     */
    public static  class  LiveVideoResources{
        public static final String VIDEO_DETAIL = "LIVE:VIDEO_DETAIL:RESOURCE";
        public static  final  String INTRANET_IP = "LIVE:IP";
    }

    /**
     * 内网IP缓存
     */

}
